import { ref } from 'vue'
import { ItemType } from "@/components/types/types"


const bill = ref<ItemType[]>([
  {
    label: '名称',
    model: 'name',
    message: '请输入名称',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '简称',
    model: 'simpleName',
    message: '请输入简称',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  {
    label: '法人姓名',
    model: 'legalPerson',
    message: '请输入姓名',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  // {
  //   label: '账号',
  //   model: 'bankCardNumber',
  //   message: '请输入账号',
  //   required: true,
  //   placeholder: '请输入',
  //   type: 'input'
  // },
  {
    label: '电话',
    model: 'phone',
    message: '请输入电话',
    required: true,
    placeholder: '请输入',
    type: 'input'
  },
  // {
  //   label: '密码',
  //   model: 'password',
  //   message: '请输入密码',
  //   required: true,
  //   placeholder: '请输入',
  //   type: 'passWord'
  // },
  {
    label: '申请代理品种',
    model: 'applyDrug',
    message: '请输入申请代理品种',
    required: true,
    placeholder: '请输入',
    span: 12,
    type: 'input'
  },
  {
    label: '申请代理省份',
    model: 'applyHospital',
    message: '请输入申请代理省份',
    required: true,
    placeholder: '请输入',
    span: 12,
    type: 'input'
  },
  
  {
    label: '代理品种',
    model: 'applyDrugs',
    provinceName: 'authorizedDrug',
    url: 'base/drug/list',
    span: 12,
    message: '请输入代理品种',
    required: true,
    placeholder: '请输入代理品种多选',
    type: 'selectMultiple',
    selectData: [],
  },
  {
    label: '代理省份',
    model: 'provinceListMap',
    provinceName: 'province',
    url: 'base/city/get-province',
    span: 12,
    message: '请输入代理省份',
    required: true,
    placeholder: '请输入代理省份多选',
    type: 'selectMultiple',
    selectData: [],
  },
  
  {
    label: '状态',
    model: 'status',
    placeholder: '请选择',
    type: 'select',
    required: true,
    disabled: true,
    dict: 'agency_Mana_status',
    message: '请选择对账年度',
    selectData: []
  },
  
])
interface Parmes {
  billingStatus?: number;
  accountTime?: any;
  setTime?: any,
  [propName: string]: any;
}
const datas = ref<Parmes>({
  photoList: [
    {
      category: 0,
      type: 1,
      url: ''
    },
    {
      category: 1,
      type: 1,
      url: ''
    },
    {
      category: 0,
      type: 2,
      url: ''
    },
    {
      category: 1,
      type: 2,
      url: ''
    },
    {
      category: 0,
      type: 3,
      url: ''
    },
    {
      category: 0,
      type: 4,
      url: ''
    },
    {
      category: 1,
      type: 4,
      url: ''
    },
  ]
})
export default { bill, datas }